import { ref } from 'vue'
import { defineStore } from 'pinia'

export const usePageStore = defineStore(
    'page',
    () => {
        const pn = ref(1)

        function setPn(p) {
            pn.value = p
        }

        return { pn, setPn }
    },
    {
        persist: {
            storage: localStorage,
            debug: true
        }
    }
)
